package cn.chencq.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.chencq.mq.MqConnectFactory;

public class MQInit {
	private static final Logger LOGGER = LoggerFactory.getLogger(MQInit.class);
	
	/**
	 * 初始化RabbitMQ
	 */
	public static void init()
	{
		
		LOGGER.info("Start To Init RabbitMQ-Connection-Factory...");
	
		MqConnectFactory.getInstance().init("demo_rabbitmq.xml");
		
		LOGGER.info("Init RabbitMQ-Connection-Factory Finished.");
		
	}
}
